<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  provide () {
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload () {
      this.isRouterAlive = false
      this.$nextTick(function () {
        this.isRouterAlive = true
      })
    }
  }
}
</script>

<style >
  html, body, #app{
    width: 100%;
    height: 100%;
  }
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* // color: #2c3e50; */
    margin: 0;
    padding: 0;
  }

  /* // .sys_Node .active .el-input__inner{border:1px solid  #2b6b3e;} */

  .el-main {padding: 0;}
  .aside .el-submenu .el-menu-item {min-width:0px;}

  /* 标签 */
  .tags .el-tabs__content {display: none;}
  .el-tabs--border-card>.el-tabs__header {background: #f7f4f4;}
  .el-tabs--card>.el-tabs__header .el-tabs__item {height: 30px; box-sizing: border-box; line-height: 30px; padding: 0px 10px; border:1px solid #ccc;}
  .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {border: 1px solid #409EFF;}
  .el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable {padding-left: 10px; padding-right: 10px;}

  /* elementUI 覆盖 */
  .avatar-uploader{
      padding-left: 10px;
  }
  .avatar-uploader .el-upload{
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      width: 60px !important;
      height: 60px ;
      overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
      border-color: #409EFF;
  }
  .avatar-uploader .el-upload img{
      height: inherit;
      width: inherit;
      display: block;
  }
  .avatar-uploader-icon{
      font-size: 28px;
      color: #8c939d;
      width: 60px;
      height: 60px;
      line-height: 60px;
      text-align: center;
      border: 1px dashed #d9d9d9;
  }
</style>
